﻿/// <reference path="../../Ext-4.1.1a/ext.js" />
Ext.define('WeCompany.controller.Content', {
    extend: 'Ext.app.Controller',
    models: ['Category', 'CategoryCombo', 'CategoryTree', 'Content'],
    stores: ['CategoriesCombo', 'CategoriesTree', 'Contents'],
    views: ['Content.View'],
    refs: [{ ref: "ContentPanel", selector: "#articlePanel" }],
    init: function () {
        var me=this,
             panel = me.getContentPanel(),
             view = Ext.widget("contentview");

        panel.add(view);

        me.control({

        });

    }
});